import type { AppRouteModule } from '@/router/types'

const system: AppRouteModule = {
  path: '/system',
  name: 'System',
  meta: {
    type: 'menu',
    title: '系统管理',
    icon: 'setting'
  },
  component: () => import(/* webpackChunkName: "empty" */ '@/layout/cnps/empty/empty.vue'),
  children: [
    {
      path: 'role',
      name: 'Role',
      meta: {
        title: '角色管理'
      },
      component: () => import(/* webpackChunkName: "role" */ '@/views/pages/system/role/index.vue')
    },
    {
      path: 'menu',
      name: 'Menu',
      meta: {
        title: '菜单管理'
      },
      component: () =>
        import(/* webpackChunkName: "workbench" */ '@/views/pages/system/menu/index.vue')
    }
  ]
}

export default system
